package com.sedric.base.repository;

import java.sql.SQLException;
import java.util.List;

public interface IRepository<T, U> {

    public int countByExample(U u) throws SQLException;

    public int deleteByExample(U u) throws SQLException;

    public int deleteByPrimaryKey(T t) throws SQLException;

    public void insert(T t) throws SQLException;

    public void insertSelective(T t) throws SQLException;

    public List<T> selectByExample(U u) throws SQLException;

    public T selectByPrimaryKey(T t) throws SQLException;

    public int updateByExample(T t,U u) throws SQLException;
    
    public int updateByExampleSelective(T t,U u) throws SQLException;

    public int updateByPrimaryKey(T t) throws SQLException;
    
    public int updateByPrimaryKeySelective(T t) throws SQLException;

}
